<%-- 
    Document   : check
    Created on : Jun 1, 2016, 2:34:46 PM
    Author     : niugao
    这是学生考勤页面
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@ include file="common.jsp" %>
<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><%=g_title%>
    </title>
    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <script src="/js/jquery-1.12.4.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/js/bootstrap.min.js"></script>


    <script>
        $(document).ready(function(){
            $("button").click(function(){
                $.getJSON("/api/student/login",
                        {
                            name:"ss",
                            password:"ss"
                        },
                        function(data,status){
                            if(data.result==0){
                                //服务端返回失败

                            }else{
                                    $("#test").html("登录成功！！！！！");
                            }

                        });
            });
        });
    </script>

</head>
<body>
<!-- 很多页面都使用这个顶部栏，所以拿出来放到一个单独文件中 -->
<jsp:include page="componse/top_bar.jsp" flush="true"/>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <label class="navbar-brand">员工管理系统</label>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li><a href="/Saccount/tuichu">退出登录</a></li>
            <li class="active"><a>考勤记录</a></li>
            <li><a href="/student/myInfo">个人信息</a></li>

            <li><a href="/Saccount/qiandao">打卡签到</a></li>
        </ul>
    </div>
</nav>

<div class="container">
    <table class="table table-striped">
        <thead>
        <tr>
            <th colspan="3" style="text-align: center;">${student_name}</th>
        </tr>
        <tr>
            <th>日期</th>
            <th>上班签到</th>
            <th>下班签退</th>
        </tr>
        </thead>
        <tbody>
        <jstl:forEach items="${check_list}" var="check">
            <tr>
                <td>${check.curDate}</td>
                <td>${check.firstCheckTime}</td>
                <td>${check.lastCheckTime}</td>
            </tr>
        </jstl:forEach>
        </tbody>
    </table>

</div>
</body>

</html>
